{% extends "navigator_base.html" %}
{% block content %}
      <div id="content">
      <div class="page-nav">
		  {% if navigation.next %}
			<span class="next-entries">
				<a href="/{{navigation.next}}/">Next Entries</a>
			</span>
			{% else %}
			<span class="next-entries"></span>
			{% endif %}	
			{% if navigation.previous %}
			<span class="previous-entries">
				<a href="/{{navigation.previous}}/">Previous Entries</a>
			</span>
			{% else %}
			<span class="previous-entries"></span>
			{% endif %}
		</div><!-- /page nav -->
	  {% if not posts or not posts|length %}
		<h2>没有文章！</h2>
	  {% else %}
	     {% for post in posts %}
	        <div class="post" id="{{ post.key }}">
			  <div class="date"><span>{{post.published|datetz:"m"}}月</span>{{post.published|datetz:"d"}}</div>
			  <div class="title">
	          <h2><a href="/post/{{ post.permalink }}.html" rel="bookmark" title="Permanent Link to {{ post.title }}">{{ post.title }}</a></h2>
	          <div class="postdata">
	            <span class="category">{% for cat in post.categories %}<a href="/category/{{ cat.category_url}}/" title="查看全部..." rel="category tag">{{ cat.category_name }}</a>,{% endfor %}</span>
	            <span class="tag">{% for tag in post.get_tags %}<a href="/tag/{{tag.tag}}/" title="{{tag.tag}}" rel="category tag">{{tag.tag}}</a>,{% endfor %}</span>
	            <span class="comments">{% if post.comments_enabled %}<a href="/post/{{ post.permalink }}.html#comments" title="Comment on {{ post.title }}">{% if not post.num_comments %}发表评论{% else %}{{ post.num_comments }} 条评论{% endif %}</a>{% endif %}&nbsp;&nbsp;点击量:很多</span>
	          </div>
	          <div class="entry">
	            {{ post.excerpt|linebreaks }}
	            <p>
	            <a href="/post/{{ post.permalink }}.html" rel="bookmark" title="Permanent Link to {{ post.title }}">[more..]</a>
	            </p>
	           </div><!--/title -->
	          </div><!--/entry -->
	        </div><!--/post -->
	      {% endfor %}
	  {% endif %}
       <div class="page-nav">
		  {% if navigation.next %}
			<span class="next-entries">
				<a href="/archive/{{keyword}}/{{navigation.next}}/">Next Entries</a>
			</span>
			{% else %}
			<span class="next-entries"></span>
			{% endif %}	
			{% if navigation.previous %}
			<span class="previous-entries">
				<a href="/archive/{{keyword}}/{{navigation.previous}}/">Previous Entries</a>
			</span>
			{% else %}
			<span class="previous-entries"></span>
			{% endif %}
		</div><!-- /page nav -->
      </div><!--/content -->
{% endblock %}